<template>
    <router-view></router-view>
</template>

<script>
import com from '../assets/js/com'

export default {
  name: 'root',
  created () {
    if (this.$route.path === '/' || this.$route.path === '/login') {
      this.$router.replace('/login')
      com.setLocData("menuUpdate",0)
    }
  }
}
</script>

<style scoped>

</style>
